GetTimeInfo.  Get time information.


Request

<?xml version="1.0" encoding="utf-8"?>

<sdk guid="##GUID">

<in method="GetTimeInfo"/>

</sdk>

 

<!--

Description:

    1. Sdk.guid is the guid value obtained through the negotiation of the SDK protocol version.

-->

Respond

<?xml version="1.0" encoding="utf-8"?>

<sdk guid="##GUID">

<out method="GetTimeInfo" result="##result">

<timezone value="##value"/>

<summer enable="##value"/>

<sync value="##value"/>

<time value="##value"/>

</out>

</sdk>

 

<!--

Description:

    1. Sdk.guid is the guid value obtained through the negotiation of the SDK protocol version.

    2. out.method = GetTimeInfo

    3. out.result (The error code refers to ErrorCode.)

    4. out.result :When the value is not "kSuccess", out has no child nodes.

  5. timezone.value: The time zone string must start with (UTC+hh:mm), for example: (UTC+08:00)Beijing,Chongqing,HongKong,Urumchi.

    6. summer.enable: Whether to enable daylight saving time, the value range is {"true" (turning on daylight saving time), "false" (not turning on daylight saving time)}.

    7. sync.value: Whether to enable automatic time synchronization, the value range is {"none" (automatic synchronization is not enabled), "gps" (gps), "network" (network time), "auto" (automatic timing, gps access) When using gps to automatically select, otherwise use the network calibration time.)}.

    8 . time.value: Current control card time, format: "yyyy-mm-dd hh:MM:ss", for example: "2017-01-01 00:00:00".

-->